package com.Main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.aspectj.EnableSpringConfigured;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

//Spring boot example: https://spring.io/guides/gs/spring-boot/
//Exception handling Spring MVC http://spring.io/blog/2013/11/01/exception-handling-in-spring-mvc
@EnableScheduling
@EnableWebSecurity
@EnableSpringConfigured
@EnableAutoConfiguration
@ComponentScan("com")
@EnableConfigurationProperties
@EnableGlobalMethodSecurity(securedEnabled = true)
public class Main {

  public static void main(String[] args) throws Exception {
    SpringApplication.run(Main.class, args);
  }

}
